import request from "@/utils/index.js";

// 生产发货单
export const generateSendOrderService = (data) => {
    return request.post('/api/deliverynotes', data);
}

// 获取发货单列表
export const getSendOrderListService = (currentPage, pageSize) => {
    return request.get('/api/deliverynotes', {params: {currentPage, pageSize}});
}

// 修改发货单（进行发货）
export const updateSendOrderService = (data) => {
    return request.put('/api/deliverynotes', data);
}